<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
    'as'         => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');
    $router->get('/forms/config', 'SystemSetController@settings');

    $router->resource('users', UserController::class);

    $router->resource('course', CourseController::class);

    $router->resource('tags', TagsController::class);

    $router->resource('category', CategoryController::class);


});
